import { axios } from '@/utils/request'

let baseUrl="/epa-manage/Sort";

export default {
  addPollute: function (data) {
    return axios({
      url: baseUrl+"/addPollute",
      method: "POST",
      data: data
    })
  },

  addQx: function (data) {
    return axios({
      url: baseUrl+"/addQx",
      method: "POST",
      data: data
    })
  },

  getPolluteList: function (params) {
    return axios({
      url: baseUrl+"/getPolluteList",
      method: "GET",
      params: params
    })
  },

  getSortPolluteQx: function (params) {
    return axios({
      url: baseUrl+"/getSortPolluteQx",
      method: "GET",
      params: params
    })
  },

  addSortCategory: function (data) {
    return axios({
      url: baseUrl+"/addSortCategory",
      method: "POST",
      data: data
    })
  },

  getPolluteCategoryList: function (params) {
    return axios({
      url: baseUrl+"/getPolluteCategory",
      method: "GET",
      params: params
    })
  },

  addCategoryKey: function (data) {
    return axios({
      url: baseUrl+"/addCategoryKey",
      method: "POST",
      data: data
    })
  },

  deleteCategoryKey: function (params) {
    return axios({
      url: baseUrl+"/deleteCategoryKey",
      method: "GET",
      params: params
    })
  },

  deleteSortPolluteFalse: function (params) {
    return axios({
      url: baseUrl+"/deleteSortPolluteFalse",
      method: "GET",
      params: params
    })
  },

  deleteSortCategoryFalse: function (params) {
    return axios({
      url: baseUrl+"/deleteSortCategoryFalse",
      method: "GET",
      params: params
    })
  },

  deleteSortQxFalse: function (params) {
    return axios({
      url: baseUrl+"/deleteSortQxFalse",
      method: "GET",
      params: params
    })
  },

  updataPollute: function (data) {
    return axios({
      url: baseUrl+"/updataPollute",
      method: "POST",
      data: data
    })
  },

  updataQx: function (data) {
    return axios({
      url: baseUrl+"/updataQx",
      method: "POST",
      data: data
    })
  },

  updataCategory: function (data) {
    return axios({
      url: baseUrl+"/updataCategory",
      method: "POST",
      data: data
    })
  },

  selectSortXfj: function (params) {
    return axios({
      url: baseUrl+"/selectXfj",
      method: "GET",
      params: params
    })
  },
  selectXfjStep4: function (params) {
    return axios({
      url: baseUrl+"/selectXfjStep4",
      method: "GET",
      params: params
    })
  },
  selectQxCategoryXfj: function (data) {
    return axios({
      url: baseUrl+"/selectQxCategoryXfj",
      method: "POST",
      data: data
    })
  },

  getCategoryStatistics: function (params) {
    return axios({
      url: baseUrl+"/getCategoryStatistics",
      method: "GET",
      params: params
    })
  },

  getCategoryStatisticsAll: function (params) {
    return axios({
      url: baseUrl+"/getCategoryStatisticsAll",
      method: "GET",
      params: params
    })
  },

  getStartDate :function (params) {
    return axios({
      url: baseUrl+"/getStartDate",
      method: "GET",
      params: params
    })
  },

  getSortXfjQxKey :function (params) {
    return axios({
      url: baseUrl+"/selectSortXfjQxKey",
      method: "GET",
      params: params
    })
  },

  updataQxKeyId:function (data) {
    return axios({
      url: baseUrl+"/updataQxKeyId",
      method: "POST",
      data: data
    })
  },

  updateSortWeek:function (data) {
    return axios({
      url: baseUrl+"/updateSortWeek",
      method: "POST",
      data: data
    })
  },

  selectSortWeek:function (data) {
    return axios({
      url: baseUrl+"/selectSortWeek",
      method: "POST",
      data: data
    })
  },

  selectSortPolluteQxNum:function (params) {
    return axios({
      url: baseUrl+"/selectSortPolluteQxNum",
      method: "GET",
      params: params
    })
  }
}